// 引入vue
import Vue from "vue"

//引入vuex
import Vuex from "vuex"

//使用vux
Vue.use(Vuex)

// 引入小仓库
import home from "./home/index"
import search from "./search/index"
import detail from "./detail/index"
import cart from "./cart/index"
import user from "./user/index"
import trade from "./trade"

//创建store实例

export default new Vuex.Store({
    // moduler 实现vuex模块化开发
    modules: {
        home,
        search,
        detail,
        cart,
        user,
        trade
    }
})

